<%- include header %>
<form>
	<div class="input-group">
		<input type="text" class="form-control" placeholder="SEARCH" name="keyword">
		<span class="input-group-btn">
			<input type="submit" value="搜索" class="btn btn-default">
		</span>
	</div>
</form>
<p><%= time %</p>
<ul class="list-group">
	<% posts.forEach(function(post)){%>
	<li class="list-group-item">
		<h3><a href="/detail?id=<%= post._id%>"><%= post.title %></a></h3>
		<p class="info">
			<span>作者：<%= post.author %</span>
			<span>|</span>
			<span>日期：<%= post.publishTime %></span>
		</p>
	</li>
	<hr>
	<%})%>
</ul>
<%- include footer %>